#include <stdio.h>
int main(){
	int men,child = 0;
	for(child = 0;child < 36 ;child += 2){
		for(men = 0;men < 36 - child;men++){
			if(child * 0.5 + men * 4 + (36 - men - child) * 3 == 36)
				printf("child = %d men =%d women= %d \n",child,men,36-men-child);
		}	
	}
}
